<%-- 
  - Author: Abed Yaseen
  - Date: 02-Jan-2012
  - Copyright Notice: TRAKHEES
  - Description: SummaryTab.jsp
 --%>
 <%@ include file="/WEB-INF/view/include.jsp"%>
		<!-- Summary -->
	
        <div id="Summary">
        	 <div style="color: red;font-size: 15px;">
  	  		  	<c:if test="${(CompanyInformationInfo.gsError)}">
					<li><spring:message code="gs.inactive.msg" /></li>
				</c:if>
				<c:if test="${(CompanyInformationInfo.fnpError)}">
					<li><spring:message code="fnp.inactive.msg" /></li>
				</c:if>
				 <c:if test="${(CompanyInformationInfo.companyError)}">
					<li><spring:message code="lic.inactive.msg" /></li>
				</c:if>
  			</div>
        	<div class="t_summary-profile-container">
        	<table border="0">
        		<tr><td><div><span class="heading"><spring:message code="label.sum_category" /></span></div></td><td>
        		<div>
        			<c:choose>
					<c:when	test='${EmploymentVisaLicenseInfo.employeeSource==0}'>
						<span class="details"><spring:message code="menu.label.employment_visa_outside" /></span>
					</c:when>
					<c:when	test='${EmploymentVisaLicenseInfo.employeeSource==1}'>
						<span class="details"><spring:message code="menu.label.employment_visa_inside" /></span>
					</c:when>
					<c:when	test='${EmploymentVisaLicenseInfo.employeeSource==2}'>
						<span class="details"><spring:message code="menu.label.internal_transfer" /></span>
					</c:when>
					<c:otherwise>
						<span class="details"><spring:message code="menu.label.transfer_sponsorship" /></span>
					</c:otherwise>
				</c:choose>
        		</div>
        		
        			<%-- <c:choose>
					<c:when	test='${EmploymentVisaLicenseInfo.employeeSource==0}'>
						<div><span class="heading"><spring:message code="label.sum_category" /></span><span class="details"><spring:message code="menu.label.employment_visa_outside" /></span></div>
					</c:when>
					<c:when	test='${EmploymentVisaLicenseInfo.employeeSource==1}'>
						<div><span class="heading"><spring:message code="label.sum_category" /></span><span class="details"><spring:message code="menu.label.employment_visa_inside" /></span></div>
					</c:when>
					<c:when	test='${EmploymentVisaLicenseInfo.employeeSource==2}'>
						<div><span class="heading"><spring:message code="label.sum_category" /></span><span class="details"><spring:message code="menu.label.internal_transfer" /></span></div>
					</c:when>
					<c:otherwise>
						<div><span class="heading"><spring:message code="label.sum_category" /></span><span class="details"><spring:message code="menu.label.transfer_sponsorship" /></span></div>
					</c:otherwise>
				</c:choose> --%>
        		</td></tr>
        		
        		<tr><td>
        			<div><span class="heading"><spring:message code="label.sum_bank_grnte" /></span ></div></td><td><div><span class="details"><fmt:formatNumber value="${CompanyInformationInfo.bankGuaranteeBalance}"  pattern="${numberPattern}" /> AED</span></div>
        		</td></tr>
        		
        		<tr><td>
        			<div><span class="heading"><spring:message code="label.sum_act_bal" /></span></div></td><td><div><span class="details"><fmt:formatNumber value="${CompanyInformationInfo.prepaidAccBalance}"  pattern="${numberPattern}" /> AED</span></div>
        		</td></tr>
        		
        		<tr><td>
        			<div><span class="heading"><spring:message code="label.sum_res_bal" /></span></div></td><td><div><span class="details"><fmt:formatNumber value="${CompanyInformationInfo.reservedAccBalance}"  pattern="${numberPattern}" /> AED</span></div>
        		</td></tr>
        	</table>
       		</div>
        	<fieldset>
            	<legend><spring:message code="header.employee_details" /></legend>
            </fieldset>

                <div class="t_form-left">
                <div>
                	<div><label><spring:message code="label.post_no" /></label></div>
                	<div><input type="text" id="sumstrPostNo" name="sumstrPostNo"  /></div>
                </div>
				
				<div>
                	<div><label><spring:message code="label.employee_type" /><span class="required-field"><spring:message code="label.field.required" /></span></label></div>
                	<div><input id="sumemployeeType" /></div>
                </div>
				
				<div>
                	<div><label><spring:message code="label.name_in_passport" /><span class="required-field"><spring:message code="label.field.required" /></span></label></div>
					<div><input id="sumstrNameInPassport" /></div>
				</div>
				
				<div>
                	<div><label><spring:message code="label.visa_type" /></label></div>
                	<div><input id="sumstrVisaType" /></div>
                </div>
				
				<div>
                	<div><label><spring:message code="label.origin_city" /><span class="required-field"><spring:message code="label.field.required" /></span></label></div>
                	<div><input id="sumstrOriginCity" /></div>
                </div>
				
				<div>
                	<div><label><spring:message code="label.salary" /><span class="required-field"><spring:message code="label.field.required" /></span></label></div>
               	 	<div><input id="sumsalary" /></div>
               	</div>
				
				<div>
                	<div><label><spring:message code="label.food_allowance" /><span class="required-field"><spring:message code="label.field.required" /></span></label></div>
                	<div><input id="sumstrFoodAllowance" /></div>
                </div>
				
				<div>
                	<div><label><spring:message code="label.accommodation_status" /></label></div>
                	<div><input id="sumstrAccommodationStatus" /></div>
                </div>
				
				<div>
                	<div><label><spring:message code="label.job_code" /><span class="required-field"><spring:message code="label.field.required" /></span></label></div>
                	<div><input id="sumjobCode" /></div>
                </div>
				
				<div>
                	<div><label><spring:message code="lablel.priority" /><span class="required-field"><spring:message code="label.field.required" /></span></label></div>
                	<div><input id="sumstrPriority" /></div>
                </div>
				
				<div>
                	<div><label><spring:message code="label.gender" /><span class="required-field"><spring:message code="label.field.required" /></span></label></div>
                	<div><input id="sumstrGender" /></div>
				</div>
				
				<div>
                	<div><label><spring:message code="label.medical_type" /><span class="required-field"><spring:message code="label.field.required" /></span></label></div>
                	<div><input id="sumstrMedicalType" /></div>
                </div>
				
				<div>
                	<div><label><spring:message code="label.id_card_flag" /><span class="required-field"><spring:message code="label.field.required" /></span></label></div>
                	<div><input id="sumstrIDCardFlag" /></div>
                </div>
</div>
            <!--form-left-end-->
            <div class="t_form-right">
				
				<div>
                	<div><label><spring:message code="label.employee_status" /></label></div>
                	<div><input id="sumstrEmployeeStatus" /></div>
                </div>
					
				<div>
                	<div><label><spring:message code="label.employee_source" /><span class="required-field"><spring:message code="label.field.required" /></span></label></div>
                	<div><input id="sumemployeeSource" /></div>
                </div>
				
				<div>
                	<div><label><spring:message code="label.RP_Period" /><span class="required-field"><spring:message code="label.field.required" /></span></label></div>
 	            	<div><input id="sumrpPeriod" /></div>
 	            </div>
                
                <div>
                	<div><label><spring:message code="label.entry_permit_collection_method" /></label></div>
                	<div><input id="sumstrEntryPermitCollectionMethod" /></div>
                </div>
                
                <div>
                	<div><label><spring:message code="label.air_fare" /></label></div>
                	<div><input id="sumairFare" /></div>
                </div>
				
				<div>
                	<div><label><spring:message code="label.other_allowance" /><span class="required-field"><spring:message code="label.field.required" /></span></label></div>
                	<div><input id="sumstrOtherAllowance" /></div>
                </div>
				
				<div>
                	<div><label><spring:message code="label.accommodation_allawance" /><span class="required-field"><spring:message code="label.field.required" /></span></label></div>
                	<div><input id="sumstrAccommodationAllowance" /></div>
                </div>
				
				<div>
                	<div><label><spring:message code="label.transportation" /><span class="required-field"><spring:message code="label.field.required" /></span></label></div>
                	<div><input id="sumstrTransportation" /></div>
                </div>
				
				<div>
                	<div><label><spring:message code="label.nationality" /><span class="required-field"><spring:message code="label.field.required" /></span></label></div>
                	<div><input id="sumstrNationality" /></div>
                </div>
				
				<div>
	            	<div><label><spring:message code="label.religion" /><span class="required-field"><spring:message code="label.field.required" /></span></label></div>
                	<div><input id="sumstrReligion" /></div>
				</div>
				
				<div>
                	<div><label><spring:message code="label.material_status" /><span class="required-field"><spring:message code="label.field.required" /></span></label></div>
                	<div><input id="sumstrMaritalStatus" /></div>
                </div>
				
				<div>
                	<div><label><spring:message code="label.bank_qurantee_flag" /><span class="required-field"><spring:message code="label.field.required" /></span></label></div>
                	<div><input id="sumstrBankGuranteeFlag" /></div>
                </div>
            </div>
            
         

        <!-- Passport Details -->

        	<fieldset>
			 	<legend><spring:message code="header.passport_details" /></legend>
			</fieldset>
            
            <div class="t_form-left">
            	<div>
                	<div><label><spring:message code="label.passport_no" /><span class="required-field"><spring:message code="label.field.required" /></span></label></div>
                	<div><input id="sumstrPassportNo" /></div>
                </div>
				
				<div>
                	<div><label><spring:message code="label.country_of_issue" /><span class="required-field"><spring:message code="label.field.required" /></span></label></div>
                	<div><input id="sumstrCountryOfIssue" /></div>
                </div>
				<div>
                	<div><label><spring:message code="label.issue_date" /></label></div>
                	<div><input id="sumissueDate" /></div>
                </div>
            </div>

            <div class="t_form-right">

                <%-- <label><spring:message code="label.passport_status" /></label>
                <input id="strPassportStatus" />--%>
				<div>
                	<div><label><spring:message code="label.city_of_issue" /><span class="required-field"><spring:message code="label.field.required" /></span></label></div>
                	<div><input id="sumstrCityOfIssue" /></div>
                </div>
				
				<div>
                	<div><label><spring:message code="label.expiry_date" /><span class="required-field"><spring:message code="label.field.required" /></span></label></div>
                	<div><input id="sumexpiryDate" /></div>
                </div>
            </div>
            <!--form right close-->

        <!-- Personal Details -->
       		<fieldset>
			 	<legend><spring:message code="header.personal_details" /></legend>
			</fieldset>
            
            <div class="t_form-left">
            	<div>
                	<div><label><spring:message code="label.family_name" /></label></div>
                	<div><input id="sumstrFamilyName" /></div>
                </div>
				
				<div>
                	<div><label><spring:message code="label.father_name" /><span class="required-field"><spring:message code="label.field.required" /></span></label></div>
                	<div><input id="sumstrFatherName" /></div>
                </div>
				
				<div>
                	<div><label><spring:message code="label.mother_name" /><span class="required-field"><spring:message code="label.field.required" /></span></label></div>
                	<div><input id="sumstrMotherName" /></div>
                </div>
                
                <div>
                	<div><label><spring:message code="label.previous_nationality" /></label></div>
                	<div><input id="sumstrPreviousNationality" /></div>
                </div>
                
                <div>
                	<div><label><spring:message code="label.date_of_birth" /><span class="required-field"><spring:message code="label.field.required" /></span></label></div>
                	<div><input id="sumdateOfBirth" /></div>
                </div>
            </div>

            <div class="t_form-right">
				<div>
                	<div><label><spring:message code="label.birth_place" /><span class="required-field"><spring:message code="label.field.required" /></span></label></div>
                	<div><input id="sumstrBirthPlace" /></div>
                </div>
                
                <div>
                	<div><label><spring:message code="label.qualification" /><span class="required-field"><spring:message code="label.field.required" /></span></label></div>
                	<div><input id="sumqualification" /></div>
                </div>
                
                <div>
                	<div><label><spring:message code="label.spoken_language1" /><span class="required-field"><spring:message code="label.field.required" /></span></label></div>
                	<div><input id="sumspokenLanguage1" /></div>
                </div>
                
                <div>
                	<div><label><spring:message code="label.spoken_language2" /></label></div>
                	<div><input id="sumspokenLanguage2" /></div>
                </div>
                
                <div>
                	<div><label><spring:message code="label.spoken_language3" /></label></div>
                	<div><input id="sumspokenLanguage3" /></div>
                </div>
            </div>
       
        <!-- Address Details -->
        	<fieldset>
			 	<legend><spring:message code="header.address_details" /></legend>
			</fieldset>
            
            <div class="t_form-left">
            	<div>
                	<div><label><spring:message code="label.currently_in_uae" /><span class="required-field"><spring:message code="label.field.required" /></span></label></div>
                	<div><input id="sumstrCurentlyInUAE" /></div>
                </div>
                
                <div>
                	<div><label><spring:message code="label.current_visa_type" /></label></div>
                	<div><input id="sumstrCurrentVisaType" /></div>
                </div>
                
                <div>
                	<div><label><spring:message code="label.city" /></label></div>
               	    <div><input id="sumstrCity" /></div>
                </div>
				
				<div>
                	<div><label><spring:message code="label.zone" /></label></div>
                	<div><input id="sumstrZone" /></div>
                </div>
				
				<div>
                	<div><label><spring:message code="label.building" /></label></div>
                	<div><input id="sumstrBuilding" /></div>
                </div>
                
                <div>
                	<div><label><spring:message code="label.telephone_office" /></label></div>
                	<div><input id="sumstrTelephoneOffice" /></div>
                </div>
                
                <div>
                	<div><label><spring:message code="label.telephone_residence" /></label></div>
                	<div><input id="sumstrTelephoneRisidence" /></div>
                </div>
                
            </div>

            <div class="t_form-right">
            	<div>
					<div><label><spring:message code="label.emirate" /></label></div>
					<div><input id="sumstrEmirate" /></div>
				</div>
                
                <div>
                	<div><label><spring:message code="label.po_box" /></label></div>
                	<div><input id="sumstrPOBox" /></div>
                </div>
                
                <div>
                	<div><label><spring:message code="label.street" /></label></div>
                	<div><input id="sumstrStreet" /></div>
                </div>
                
                <div>
                	<div><label><spring:message code="label.flat_no" /></label></div>
                	<div><input id="sumstrFlatNO" /></div>
                </div>
                
                <div>
                	<div><label><spring:message code="label.telephone_office_extension" /></label></div>
                	<div><input id="sumstrTelephoneOfficeExtension" /></div>
                </div>
                
                <div>
                	<div><label><spring:message code="label.address_abroad" /><span class="required-field"><spring:message code="label.field.required" /></span></label></div>
               		<div><input id="sumstrAddressAbroad" /></div> 
                </div>
             </div>
			 <!-- Comments -->
        	<fieldset>
			 	<legend><spring:message code="header.comments" /></legend>
			</fieldset>
            
            <div class="t_form_middle">
            	<div>
                	<div><label><spring:message code="label.comments" /></label></div>
                	<div><textarea id="sumadminComments" ></textarea></div>
                </div>
                
                <%-- <label><spring:message code="label.status" /></label>
				<input id="strStatus" />--%>
            </div>
			<!-- Attachments -->
           	<fieldset>
			 	<legend><spring:message code="header.attachments" /></legend>
			</fieldset>
			<div class="t_form-left">
				<div>
					<div><label ><spring:message code="label.passport_copy" /><span class="required-field"><spring:message code="label.field.required" /></span></label></div>
					<div><input id="sumPassportCopy"   /></div>
				</div>
				
				<div>
					<div><label ><spring:message code="label.letter_from_company" /><span class="required-field"><spring:message code="label.field.required" /></span></label></div>
					<div><input id="sumLetterFromCompany"  /></div>
				</div>
				
				<div>
					<div><label ><spring:message code="label.photograph" /><span class="required-field"><spring:message code="label.field.required" /></span></label></div>
					<div><input  id="sumPhotograph"/></div>
				</div>
				
				<div>
					<div><label  id="sumInsurancePaperLbl"><spring:message code="label.insurance_paper" /><span class="required-field"><spring:message code="label.field.required" /></span></label></div>
					<div><input id="sumInsurancePaper"  /></div>
				</div>
				
				<div>
					<div><label  id="sumcancellationOrVisitCopyLbl">
					<c:if test="${EmploymentVisaLicenseInfo.employeeSource!=3}">
							<spring:message code="label.cancellation_or_visit_copy" />
					</c:if>
					<c:if test="${EmploymentVisaLicenseInfo.employeeSource ==3}">
						<spring:message code="label.immigration_app" />
					</c:if>
					<span class="required-field"><spring:message code="label.field.required" /></span></label></div>
					<div><input  id="sumcancellationOrVisitCopy"  /></div>
				</div>
				
				<div>
					<div><label  id="sumcancellationPaperLbl"><spring:message code="label.cancellation_paper" /><span class="required-field"><spring:message code="label.field.required" /></span></label></div>
					<div><input id="sumcancellationPaper"  /></div>
				</div>
			</div>
		    <!--  Admin Review 
			<fieldset>
			 	<legend>Admin Review</legend>
			</fieldset>
			<div class="t_form-left">
				<label>Admin Comments:</label>
	            <textarea class="t_form-fld-disable"  ></textarea>
            </div>-->
            <c:if test="${isCompanyAdmin}">
            	<%@include file="../../../admin/general/payment/FNPInfoTab.jsp" %>
            </c:if>
            
            <div id="fm-submit">
            		<button  class="button_small" onclick="closeApplication();" type="button"><spring:message code="button.close" /></button>
            		 <c:if test="${isCompanyAdmin}"><button type="button" class="button_small" onclick="if(validate(7) && validatePayment()){subm('fnpServiceCode', 'submitFormDiv', null, '${bgRequired}','true');}"><spring:message code="button.submit" /></button></c:if>
               		 <c:if test="${!isCompanyAdmin}"><button  class="button_small" id="SubmitBtn" type="submit" ><spring:message code="button.submit" /></button></c:if>
            </div>
		</div>